package com.gx.cn.hospitalmanage.Fragment;

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentPagerAdapter;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.Spinner;
import android.widget.TextView;

import com.gx.cn.hospitalmanage.MyFragmentThree.PatientMessageActivity;
import com.gx.cn.hospitalmanage.R;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by JCQ on 2017/9/27.
 */

public class MyFragment3 extends Fragment{

    Button btnAddUser;

    View view;
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
         view = inflater.inflate(R.layout.myfragment_three,container,false);
        TextView textView= (TextView) view.findViewById(R.id.txt_content);
         btnAddUser  =(Button) view.findViewById(R.id.btnAddUser) ;

        btnAddUser.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent it=new Intent();
                it.setClass(getActivity(), PatientMessageActivity.class);
                startActivity(it);
            }
        });

        return view;

    }

}
